home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Show on Desktop.xpl < prev    next >
Text File  |  1999-08-18  |  3KB  |  119 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="5"
  4. "UIPATH"="Appearance\Desktop\Icons"
  5. "NAME"="Visible Icons #1"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.74"
  8. "TEXT 1"="Recycle Bin"
  9. "TEXT 2"="Internet Explorer (2.x/3.x/5.x)"
  10. "TEXT 3"="Internet Explorer (4.x)"
  11. "TEXT 4"="Inbox/Outlook"
  12. "TEXT 5"="Win 95 Dial-up Network"
  13. "DESCRIPTION 1"="To show an item on the desktop, activate it. To hide it, deactivate it."
  14. "DESCRIPTION 2"="It might be necessary to activate the desktop and pressing the F5 key in order to see the changes."
  15. "AUTHOR"="Xteq Systems"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  18. "COMMENT 2"="Thanks to Siegfried Burgstedt for his fix!"
  19. "COMMENT 3"=" "
  20. "COMMENT 4"="from lockergnome.com:
  21. "COMMENT 5"="Adam Rao <adam_rao@hotmail.com>: What exactly is a "Recyle Bin"? :)"
  22. "COMMENT 6"="Pierre Szwarc <szwarc@usa.net>: Its an invisible Recycle Bin (you don't 'C' it) <G>"
  23.  
  24.  
  25.  
  26. sPath="HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\"
  27.  
  28. sTC="{645FF040-5081-101B-9F08-00AA002F954E}" 'Trashcan
  29. sIE="{FBF23B42-E3F0-101B-8488-00AA003E56F8}" 'Internet Explorer (old???)
  30. sIB="{00020D75-0000-0000-C000-000000000046}" 'Inbox
  31. sDN="{992CFFA0-F557-101A-88EC-00DD010CCC48}" 'Dial-up Network  
  32. sIE4="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoInternetIcon"
  33.  
  34. Sub Plugin_Initialize 
  35.  if RegPathExists(sPath & sTC) then SetUIElement 1,true
  36.  if RegPathExists(sPath & sIE) then SetUIElement 2,true
  37.  if RegPathExists(sPath & sIB) then SetUIElement 4,true
  38.  if RegPathExists(sPath & sDN) then SetUIElement 5,true
  39.  
  40.  'IE 4 stuff!
  41.  i=RegReadValue(sIE4)
  42.  if IsEmpty(i) or i="00000000" then SetUIElement 3,true
  43.  
  44.  
  45.  'if RegPathExists(sPath & sMN) then SetUIElement 5,true
  46.  'if RegPathExists(sPath & sM2) then SetUIElement 5,true
  47. End Sub
  48.  
  49. Sub Plugin_CheckData(ElementIndex)
  50. End Sub
  51.  
  52. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  53.  b=GetUIElement(1)
  54.  if b=true then
  55.   Call RegWriteValue(sPath & sTC & "\@","",1)
  56.  else
  57.   if RegPathExists(sPath & sTC) then
  58.    Call RegDeletePath(sPath & sTC)
  59.   end if
  60.  end if
  61.  
  62.  b=GetUIElement(2)
  63.  if b=true then
  64.   Call RegWriteValue(sPath & sIE & "\@","",1)
  65.  else
  66.   if RegPathExists(sPath & sIE) then
  67.    Call RegDeletePath(sPath & sIE)
  68.   end if
  69.  end if
  70.  
  71.  b=GetUIElement(3)
  72.  if b=true then
  73.   Call RegWriteValue(sIE4,"00000000",3)
  74.  else
  75.   Call RegWriteValue(sIE4,"01000000",3)  
  76.  end if
  77.  
  78.  b=GetUIElement(4)
  79.  if b=true then
  80.   Call RegWriteValue(sPath & sIB & "\@","",1)
  81.  else
  82.   if RegPathExists(sPath & sIB) then
  83.    Call RegDeletePath(sPath & sIB)
  84.   end if
  85.  end if
  86.  
  87.  b=GetUIElement(5)
  88.  if b=true then
  89.   Call RegWriteValue(sPath & sDN & "\@","",1)
  90.  else
  91.   if RegPathExists(sPath & sDN) then
  92.    Call RegDeletePath(sPath & sDN)
  93.   end if
  94.  end if
  95.  
  96.  Call Logoff
  97.  
  98. '//Old MSN Stuff!
  99. ' b=GetUIElement(5)
  100. ' if b=true then
  101. '  Call RegWriteValue(sPath & sMN & "\@","",1)
  102. ' else
  103. '  if RegPathExists(sPath & sMN) then
  104. '   Call RegDeletePath(sPath & sMN)
  105. '  end if
  106. '
  107. '  if RegPathExists(sPath & sM2) then
  108. '   Call RegDeletePath(sPath & sM2)
  109. '  end if   
  110. ' end if
  111. End Sub
  112.  
  113.  
  114. Sub Plugin_Terminate 
  115. End Sub
  116.  
  117.  
  118.  
  119.